import request from '@/utils/request'

/**
 * 履历信息查询
 */
export function getListPage(params) {
  return request({
    url: '/cms/equipmentDivceAttr/listPage',
    method: 'get',
    params: params
  })
}

/**
 * 履历信息统计
 */
export function geConuts(params) {
  return request({
    url: '/cms/equipmentDivceAttr/geConuts',
    method: 'get',
    params: params
  })
}

/**
 * 厂家信息删除
 */
export function deleteData(id) {
  return request({
    url: `/cms/equipmentDivceAttr/${id}`,
    method: 'Post'
  })
}

/**
 * upd add
 * @param query
 * @returns {AxiosPromise}
 */
export function addOrEditData(param) {
  return request({
    url: '/cms/equipmentDivceAttr/saveOrUpdate',
    method: 'POST',
    data: param
  })
}

export function fileSave(param) {
  return request({
    url: '/cms/jcjcEquipmentFileLog/saveOrUpdate',
    method: 'POST',
    data: param
  })
}

export function fileList(params) {
  return request({
    url: '/cms/jcjcEquipmentFileLog/fileList',
    method: 'get',
    params: params
  })
}

export function fileDelete(id) {
  return request({
    url: `/cms/jcjcEquipmentFileLog/${id}`,
    method: 'Post'
  })
}
